package com.tian.common;

/**
 * SUCCESS:调用成功 <br>
 * FAIL:调用失败<br>
 * ERROR:调用成功，系统错误<br>
 * TIMEOUT:调用超时<br>
 * LOGOUT:未登录<br>
 *
 * @author ruiyun
 */
public enum ReturnCodeEnum {

    SUCCESS(1), FAIL(2), ERROR(3), TIMEOUT(4), LOGOUT(-1);

    private int returnCode = 1;

    ReturnCodeEnum(int returnCode) {
        this.returnCode = returnCode;
    }

    public int getReturnCode() {
        return this.returnCode;
    }
}
